package com.itheima.staticstudy;

public class Son  extends Father{
    int sum=200;
    public void count(){
        System.out.println("子类计数:重写父类计数功能");
    }
    public void variable(){
        int sum=400;
        System.out.println(sum);
        System.out.println(this.sum);
        System.out.println(super.sum);
    }
    public void sum(){
        super.sum();
        System.out.println("父类基础上增强求和");
    }

}
